package demo3_6;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : LiBaoxuan
 * @create 2023/5/10 9:07 PM
 */
public class Employee {

    private String name;

    private Double salary;

    private String joinedData;

    public Employee() {
    }

    public Employee(String name, Double salary, String joinedData) {
        this.name = name;
        this.salary = salary;
        this.joinedData = joinedData;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getJoinedData() {
        return joinedData;
    }

    public void setJoinedData(String joinedData) {
        this.joinedData = joinedData;
    }

    public void show() {
        String s =  "demo3_6.Employee{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                ", joinedData='" + joinedData + '\'' +
                '}';
        System.out.println(s);
    }
}
